package com.zhaozhe.datastructure;

/**
 * Created by ghjou on 2018/3/7.
 */
public class PopThread extends Thread {
    private StackInterface s;
    public PopThread(StackInterface s){
        this.s = s;
    }

    public void run(){
        while (true){
            System.out.println("->" + s.pop()[0] + "<-");
            try {
                Thread.sleep(100);
            }catch (InterruptedException e){}
        }
    }
}
